package com.fanyue.modules.face.service;

import com.fanyue.core.base.BaseService;
import com.fanyue.core.request.R;
import com.fanyue.modules.face.entity.AppUserFace;
import com.fanyue.modules.face.vo.FaceVO;
import org.springframework.web.multipart.MultipartFile;

import java.io.File;
import java.util.List;

public interface IFaceService extends BaseService<AppUserFace> {

	R userInfo(Long userId);

	R featureList();

	R extractFeature(String type, Long userId, MultipartFile file, String filePath);

	/**
	 * type=1: 识别
	 * type=0: 检测
	 * @param faceVO
	 * @param type
	 * @return
	 */
	R compareFeature(FaceVO faceVO,Integer type);

    R deleteFeature(Long userId);

}
